<?php foreach($data_array as $data){ ?>
  <div class="portals_view_colsof_portal" style="width: <?php echo($cols_width); ?>%">
    <?php echo($data); ?>
  </div>
<?php } ?>